package com.ruixun.utils;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ruixun.common.PageData;

import java.util.List;

public class PageUtils<T> {


    public  PageData<T> convert(Long pageNo ,Long pageSize, Long total,List<T> rvoList) {
        PageData<T> pageData = PageData.<T>builder()
                .currentPage(pageNo)
                .pageSize(pageSize)
                .dataList(rvoList)
                .totalCount(total)
                .build();
        return pageData;
    }
}
